package com.cn.byjk.service;

import com.cn.byjk.mapper.ManageMapper;
import com.cn.byjk.model.Manage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @author zhangdianzhi
 * @version v1.0
 * @description
 * @date 2022/1/7 16:34
 */
@Service
public class ManageService {
    @Autowired
    private ManageMapper manageMapper;

    public BigDecimal getMoney(Long userid) {
        Manage manage = manageMapper.getManage(userid);
        return manage.getMoney();
    }
}
